﻿<UserControl x:Class="SilveR.Views.StatsViews.UnpairedTTest"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             
    xmlns:toolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
    xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
    xmlns:silveR="clr-namespace:SilveR.Views.StatsViews"
             
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="600">

    <UserControl.Resources>
        <silveR:EnumBoolConverter x:Key="ConvertEnum" />
    </UserControl.Resources>

    <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
        <Grid>
            <Border Margin="3,3,3,3" Style="{StaticResource MainAnalysisBorderStyle}">
                <Grid>
                    <TextBlock Text="Input" Margin="3,3,6,6" Style="{StaticResource TextBlockStyle}"/>

                    <TextBlock Text="Select dataset" Margin="3,25,6,6" Style="{StaticResource TextBlockStyle}" />
                    <ComboBox Name="cboData" Margin="95,21,6,6" ItemsSource="{Binding AvailableDataHandlers}" SelectedItem="{Binding SelectedDataHandler, Mode=TwoWay}" DisplayMemberPath="DisplayFileName" SelectionChanged="cboData_SelectionChanged" Style="{StaticResource ComboBoxStyle}" />

                    <TextBlock Text="Available variables"  Margin="3,51,6,6" Style="{StaticResource TextBlockStyle}"/>
                    <toolkit:ListBoxDragDropTarget AllowDrop="True" Height="140" Margin="3,73,6,6" ItemDragCompleted="Target_ItemDragCompleted" Style="{StaticResource ListBoxDragDropTargetStyle}">
                        <ListBox Name="lstAvailableVariables" DisplayMemberPath="ColumnName" Height="140" ItemsSource="{Binding AvailableVariables, Mode=TwoWay}" Style="{StaticResource ListBoxStyle}"/>
                    </toolkit:ListBoxDragDropTarget>

                    <TextBlock Text="Response"  Margin="137,51,6,6" Style="{StaticResource TextBlockStyle}" />
                    <toolkit:ListBoxDragDropTarget AllowDrop="True" Margin="137,73,0,0" DragOver="oneItem_DragOverOrDrop" Drop="oneItem_DragOverOrDrop" ItemDragCompleted="Target_ItemDragCompleted" Style="{StaticResource ListBoxDragDropTargetStyle}">
                        <ListBox Name="lstResponse" DisplayMemberPath="ColumnName" ItemsSource="{Binding ResponseList, Mode=TwoWay}" Style="{StaticResource ListBoxStyle}"/>
                    </toolkit:ListBoxDragDropTarget>

                    <TextBlock Text="Transformation"  Margin="157,100,0,0" Style="{StaticResource TextBlockStyle}" />
                    <ComboBox Name="cboResponseTransformations" Margin="157,116,0,0" ItemsSource="{Binding TransformationList}" SelectedItem="{Binding ResponseTransformation, Mode=TwoWay}" Style="{StaticResource ComboBoxStyle}" IsEnabled="False"/>

                    <TextBlock Text="Treatment" Margin="137,157,0,0" Style="{StaticResource TextBlockStyle}" />
                    <toolkit:ListBoxDragDropTarget Name="treatmentTarget" AllowDrop="True" Margin="137,177,0,0" DragOver="oneItem_DragOverOrDrop" Drop="oneItem_DragOverOrDrop" ItemDragCompleted="Target_ItemDragCompleted" Style="{StaticResource ListBoxDragDropTargetStyle}">
                        <ListBox Name="lstTreatment" DisplayMemberPath="ColumnName" ItemsSource="{Binding TreatmentList, Mode=TwoWay}"  Style="{StaticResource ListBoxStyle}"/>
                    </toolkit:ListBoxDragDropTarget>
                </Grid>
            </Border>

            <Border Margin="301,3,3,3" Style="{StaticResource MainAnalysisBorderStyle}">
                <Grid>
                    <TextBlock Margin="8,3,6,6" Text="Analysis results" Style="{StaticResource TextBlockStyle}" />

                    <CheckBox Name="cbxEqualVarianceSelected" Content="Equal variance case" IsChecked="{Binding EqualVarianceSelected, Mode=TwoWay}" Margin="8,23,3,3" Style="{StaticResource CheckBoxStyle}" />
                    <CheckBox Name="cbxUnequalVarianceSelected" Content="Unequal variance case" IsChecked="{Binding UnequalVarianceSelected, Mode=TwoWay}" Margin="8,43,3,3" Style="{StaticResource CheckBoxStyle}" />
                    <CheckBox Name="cbxPredictedVsResidualsPlotSelected" Content="Predicted vs. residuals plot" IsChecked="{Binding PRPlotSelected, Mode=TwoWay}" Margin="8,63,3,3" Style="{StaticResource CheckBoxStyle}"/>
                    <CheckBox Name="cbxNormalProbabilityPlotSelected" Content="Normal probability plot" IsChecked="{Binding NormalProbabilityPlotSelected, Mode=TwoWay}" Margin="8,83,3,3" Style="{StaticResource CheckBoxStyle}"/>

                    <TextBlock Text="Significance" Margin="8,115,6,6" Style="{StaticResource TextBlockStyle}"/>
                    <ComboBox Margin="95,114,6,6" Name="cboSignificance" ItemsSource="{Binding SignificanceList}" SelectedItem="{Binding Significance, Mode=TwoWay}" Style="{StaticResource ComboBoxStyle}" />
                </Grid>
            </Border>
        </Grid>
    </ScrollViewer>
</UserControl>